package com.lanou.utp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author MaQingYun
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Student implements Serializable {

    private Long id;
    private User user;
    private String head; /** 头像 */
    private String openId; /** 微信openid */
    private Long schoolId; /** 学校id */
    private String schoolName; /** 学校Name */
    private Long collegeId; /** 学院id */
    private String collegeName; /** 学院Name */
    private Long majorId; /** 专业id */
    private String majorName; /** 专业Name */
    private Long clazzId; /** 班级id */
    private String clazzName; /** 班级Name */

    private String name;/*姓名*/
    private String tel;/*电话*/
    private Long taskId;
    private String taskName;/*任务名*/
    private String baseName;
    private String baseTeacherName;
    private String baseTeacherTel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;/*创建时间*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;/*更新时间*/

    private Integer status;/*状态*/
    private Integer role;/*角色*/


}
